|
|
|
|
|
|
|
6. What are the four preliminary steps you must complete before you can pass an SQL SELECT statement to the newly opened ODBC data source? |
|
|
|
|
|
|
|
|
Suppose that you have been given the assignment of creating a remote data-entry form for reviewing and updating data in a centrally located data file. The data currently is stored in a Microsoft Access database on the central file server, but it might soon be converted to an SQL Server database in another location. |
|
|
|
|
|
|
|
|
You cannot always know the actual columns that exist in the data table, because the layout of the table changes based on information entered each month. The form should be flexible enough to determine the columns available and present those columns to the user for data entry. The program also should be flexible enough to allow for minimum disruption of the file even when the database is converted from Microsoft Access to SQL Server database format. |
|
|
|
|
|
|
|
|
Your first task is to define an ODBC data source at your workstation that has the Microsoft Access data file C:\TYSDBVB\CHAP19\EXER19.MDB as its data source name. You want to access the Transactions table that exists in the EXER19.MDB database. The key field of the Transactions table is called OrderNbr. |
|
|
|
|
|
|
|
|
Then, modify the TYSODBC.VBP project to open this data source and enable users to review and update data in the spreadsheet. |
|
|
|
|
|